package cn.edu.scau.cmi.lishuoxin.interProgramming.experiment5;

public class ImageFile extends AbstractFiles {

	private String name;
	
	public ImageFile() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public void add(AbstractFiles afile) {
		System.out.println("不支持该方法！");
	}

	@Override
	public void remove(AbstractFiles afile) {
		System.out.println("不支持该方法！");
	}

	@Override
	public AbstractFiles get(int i) {
		System.out.println("不支持该方法！");
		return null;
	}

	@Override
	public void downloadFile() {
		System.out.println("正在进行 "+name+" 下载...");
	}
	
	public void uploadFile() {
		System.out.println("正在进行 "+name+" 上传...");
	}

}
